/*
 * @Author: 赵克强 huohuo625@163.com
 * @Date: 2023-10-17 10:13:29
 * @LastEditors: 赵克强 huohuo625@163.com
 * @LastEditTime: 2023-11-06 15:06:36
 * @FilePath: \hy-ui\src\api\menu.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 获取路由
export const getRouters = (key) => {
  return request({
    url:  key === 'front_user' ? '/frontView/getRouters' : '/getRouters',
    method: 'get'
  })
}